<?php
include_once('common/header.php');	
if($AppUI->id <= 0 || !isset($_SERVER['HTTP_REFERER'])) {	
	$arrJson = array('request'=>0,'notify'=>0);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	exit();
}
$objURequest		= new URequest();
$objNotification	= new Notification();
$intRequest			= $objURequest->getUnread($AppUI->id);
$intNotify			= $objNotification->getNotifyUnread($AppUI->id);
$arrJson 			= array('request'=>$intRequest,'notify'=>$intNotify);
echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
exit();
?>